package jsyf.oa.entity.business;

import com.alibaba.fastjson.JSONObject;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import jsyf.oa.ientity.BaseEntity;

@Entity
@Table(name = "t_apl_business_audit", schema = "oa", catalog = "")
public class BusinessAuditEntity extends BaseEntity {

    private String mainId;
    private String auditorId;
    private String auditorName;
    private String auditFlag;
    private Integer auditSort;
    private Date auditTime;
    private String auditAdvise;

    public String getMainId() {
        return mainId;
    }

    public void setMainId(String mainId) {
        this.mainId = mainId;
    }

    public String getAuditorId() {
        return auditorId;
    }

    public void setAuditorId(String auditorId) {
        this.auditorId = auditorId;
    }

    public String getAuditorName() {
        return auditorName;
    }

    public void setAuditorName(String auditorName) {
        this.auditorName = auditorName;
    }

    public String getAuditFlag() {
        return auditFlag;
    }

    public void setAuditFlag(String auditFlag) {
        this.auditFlag = auditFlag;
    }

    public Integer getAuditSort() {
        return auditSort;
    }

    public void setAuditSort(Integer auditSort) {
        this.auditSort = auditSort;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public String getAuditAdvise() {
        return auditAdvise;
    }

    public void setAuditAdvise(String auditAdvise) {
        this.auditAdvise = auditAdvise;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("MAIN_ID", getMainId());
        obj.put("AUDITOR_ID", getAuditorId());
        obj.put("AUDITOR_NAME", getAuditorName());
        obj.put("AUDIT_FLAG", getAuditFlag());
        obj.put("AUDIT_SORT", getAuditSort());
        obj.put("AUDIT_TIME", getAuditTime());
        obj.put("AUDIT_ADVISE", getAuditAdvise());
        return obj;
    }

    @Override
    public String getTableName() {
        return "t_apl_business_audit";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("MAIN_ID", "mainId");
        obj.put("AUDITOR_ID", "auditorId");
        obj.put("AUDITOR_NAME", "auditorName");
        obj.put("AUDIT_FLAG", "auditFlag");
        obj.put("AUDIT_SORT", "auditSort");
        obj.put("AUDIT_TIME", "auditTime");
        obj.put("AUDIT_ADVISE", "auditAdvise");
        return obj;
    }

}
